import React from 'react';
import { NavLink, useLocation } from 'react-router-dom';

// 自定义链接
export default function QueryNavLink({to, ...props}) {
  const location = useLocation();
  console.log('location: ', location)
  return (
    <NavLink to={to + location.search} {...props} />
  )
}
